﻿using System;

using System.Runtime.Serialization;
using MaLu.Data;

namespace Malu.Entity
{

    [Serializable]
    [DataContract(Name = "FaShare")]
    [Table("FaShare", Info = "")]
    public class FaShare : BaseEntity
    {
        [DataMember]
        [Column("id", DataType.Int32, Length = 4, CanNull = false, AutoIncrement = true, PrimaryKey = true)]
        public int id { get; set; }

        [DataMember]
        [Column("village", DataType.VarChar, Length = 50)]
        public string village { get; set; }

        [DataMember]
        [Column("place", DataType.VarChar, Length = 200)]
        public string place { get; set; }

        [DataMember]
        [Column("familyname", DataType.VarChar, Length = 50)]
        public string familyname { get; set; }

        [DataMember]
        [Column("amount", DataType.Int32, Length = 4)]
        public int amount { get; set; }

        [DataMember]
        [Column("jinepergu", DataType.Float)]
        public float jinepergu { get; set; }

        [DataMember]
        [Column("jine", DataType.Float)]
        public float jine { get; set; }

        [DataMember]
        [Column("honglipercent", DataType.Float)]
        public float honglipercent { get; set; }

        [DataMember]
        [Column("yingde", DataType.Float)]
        public float yingde { get; set; }

        [DataMember]
        [Column("fax", DataType.Float)]
        public float fax { get; set; }

        [DataMember]
        [Column("realget", DataType.Float)]
        public float realget { get; set; }

        [DataMember]
        [Column("year", DataType.Int32, Length = 4)]
        public int year { get; set; }

        [DataMember]
        [Column("remark", DataType.Text)]
        public string remark { get; set; }

        public FaShare()
        {
            amount = 0;
            jinepergu = 0;
            jine = 0;
            honglipercent = 0;
            yingde = 0;
            fax = 0;
            realget = 0;
            year = 2010;
        }

    }
}
